/***********************************************************************
	filename: 	4YsXMLParserUser.h
	created:	6/5/2012
	author:		4Ys
	
	purpose:	Defines classes of XMLParser with TinyXML, especially for User.	            
*************************************************************************/
#ifndef _4YsXMLParserUser_h_
#define _4YsXMLParserUser_h_

#include "tinyxml.h"
#include "tinystr.h"
//#include "DaterEventManager.h"
//#include "DaterEvent.h"
#include "4YsXMLParser.h"
//#include "DaterTime.h"

#include <string>
//#include <vector>

namespace Dater
{
	/*!
	\beirf
		Implemeentation of Dater XMLParserUser using TinyXML.
	*/
	class XMLParserUser : public XMLParser
	{
	public:
		/*
			Construction of class: XMLParserUser.
		*/
		XMLParserUser(const std::string& filename = "User.xml");

		/*!
		\brief
			Read an xml file.

		\return 
			- true : read successfully.
			- false : read fail.
		*/
		virtual bool readXmlFile();

		/*!
		\brief
			Save an xml file.

		\return 
			- true : save successfully.
			- false : save fail.
		*/
		virtual bool saveXmlFile();

	private:
	};
}

#endif